#include <iostream>
#include <queue>
#include <vector>

using std::cout;
using std::endl;
using std::vector;
using std::priority_queue;

void test1()
{
    priority_queue<int, vector<int>, std::greater<int>> que;
    vector<int> vec{3, 1, 3, 5, 4, 9, 0};
    for(int i: vec){
        que.push(i);
    }

    while(!que.empty()){
        cout << que.top() << " ";
        que.pop();
    }
    cout << endl;
}

int main(int args, char *argv[])
{
    test1();
    return 0;
}